package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * packageName com.sky.mapper
 *
 * @author fenglai
 * @version JDK 11
 * @interfaceName DishMapper
 * @date 2023/12/10
 * @description TODO
 */
@Mapper
public interface DishMapper {
    List<Dish> getDish(Dish build);

    @AutoFill(OperationType.INSERT)
    void addDish(Dish dish);
    @AutoFill(OperationType.UPDATE)
    void updateDish(Dish dish);

    void deleteDish(List<Long> ids);
}